package cn.net.asiacom.entity;

import java.math.BigDecimal;
 
/**
 * 发票详情类
 * @author b16mt
 * @version v1.0
 */
public class Detail {
 
    /**
     * 商品名称
     */
    private String name;
 
    /**
     * 商品规格型号
     */
    private String model;
 
    /**
     * 商品单位
     */
    private String unit;
 
    /**
     * 商品数量
     */
    private BigDecimal count;
 
    /**
     * 商品单价
     */
    private BigDecimal price;
 
    /**
     * 商品总金额
     */
    private BigDecimal amount;
 
    /**
     * 商品税率
     */
    private BigDecimal taxRate;
 
    /**
     * 商品税额
     */
    private BigDecimal taxAmount;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(BigDecimal taxRate) {
        this.taxRate = taxRate;
    }

    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }

    @Override
    public String toString() {
        return "Detail{" +
                "name='" + name + '\'' +
                ", model='" + model + '\'' +
                ", unit='" + unit + '\'' +
                ", count=" + count +
                ", price=" + price +
                ", amount=" + amount +
                ", taxRate=" + taxRate +
                ", taxAmount=" + taxAmount +
                '}';
    }
}